<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript" src="../../../src/base/_core.js"></script>
    <script type="text/javascript" src="../../../src/framework/env/browser.js"></script>
</head>
<body>
<script type="text/javascript">
    var ua = window.navigator.userAgent.toLowerCase();
    var browser={
        ie:{
            dev:/msie/,
            is:true,
            version:/msie (\d+\.\d+)/
        },
        firefox:{
            dev:/gecko/,
            is:true,
            version:/\bfirefox\/(\d+\.\d+)/
        },
        chrome:{
            dev:/\bchrome\b/,
            is:/\bchrome\b/.test(ua),
            version:/\bchrome\/(\d+\.\d+)/
        },
        opera:{
            dev:/opera/,
            is:/opera/.test(ua),
            version:/version\/(\d+\.\d+)/
        },
        safari:{
            dev:/safari/,
            is:/safari/.test(ua),
            version:/version\/(\d+\.\d+)/
        }
    };

    var version = function (is, regex) {
        var m;
        return (is && (m = regex.exec(ua))) ? parseFloat(m[1]) : 0;
    };
    //chrome:
    var isChrome = /\bchrome\b/.test(ua);
    var chromeVersion = version(true, /\bchrome\/(\d+\.\d+)/);

    //opera
    var isOpera = /opera/.test(ua);

    //ie
    var isIE = !isOpera && /msie/.test(ua);
    var ieVersion = version(isIE, /msie (\d+\.\d+)/);

    //firefox
    //isGeock


    //safari
    var isSafari = !isChrome && /safari/.test(ua);

    //webkit
    var isWebKit = /webkit/.test(ua);
    var webKitVerion = version(isWebKit, /webkit\/(\d+\.\d+)/);

    //gecko
    var isGecko = !isWebKit && /gecko/.test(ua);
    //var webKitVerion = version(isWebKit, /webkit\/(\d+\.\d+)/);

    //os
    var isWindows = /windows|win32/.test(ua);
    var isMac = /macintosh|mac os x/.test(ua);
    var isLinux = /linux/.test(ua);

    var platform=window.navigator.platform;


</script>
</body>
</html>